package com.adapterpattern.adapter.impl;

import com.adapterpattern.adapter.Phone;
import com.adapterpattern.iface.Charger;

public class PhoneAdapter implements Phone {
    @Override
    public void charge(Charger charger) {
        if ( charger == null ) throw new NullPointerException("charger is null.");
        charger.charge();
    }
}
